package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 每日基础数据对象 stock_base
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
public class StockBase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键,代码+年月日 */
    private Long recordId;

    /** 代码 */
    @Excel(name = "代码")
    private String stockCode;

    /** 名称 */
    @Excel(name = "名称")
    private String stockName;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal closePrice;

    /** 开盘 */
    @Excel(name = "开盘")
    private BigDecimal openPrice;

    /** 最高 */
    @Excel(name = "最高")
    private BigDecimal HIGH;

    /** 最低 */
    @Excel(name = "最低")
    private BigDecimal LOW;

    /** 成交量 */
    @Excel(name = "成交量")
    private BigDecimal TURNOVER;

    /** 成交额 */
    @Excel(name = "成交额")
    private BigDecimal turnVolume;

    /** 连续涨停天数 */
    @Excel(name = "连续涨停天数")
    private Long limitDays;

    /** 数据创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crteTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setStockCode(String stockCode) 
    {
        this.stockCode = stockCode;
    }

    public String getStockCode() 
    {
        return stockCode;
    }
    public void setStockName(String stockName) 
    {
        this.stockName = stockName;
    }

    public String getStockName() 
    {
        return stockName;
    }
    public void setClosePrice(BigDecimal closePrice) 
    {
        this.closePrice = closePrice;
    }

    public BigDecimal getClosePrice() 
    {
        return closePrice;
    }
    public void setOpenPrice(BigDecimal openPrice) 
    {
        this.openPrice = openPrice;
    }

    public BigDecimal getOpenPrice() 
    {
        return openPrice;
    }
    public void setHIGH(BigDecimal HIGH) 
    {
        this.HIGH = HIGH;
    }

    public BigDecimal getHIGH() 
    {
        return HIGH;
    }
    public void setLOW(BigDecimal LOW) 
    {
        this.LOW = LOW;
    }

    public BigDecimal getLOW() 
    {
        return LOW;
    }
    public void setTURNOVER(BigDecimal TURNOVER) 
    {
        this.TURNOVER = TURNOVER;
    }

    public BigDecimal getTURNOVER() 
    {
        return TURNOVER;
    }

    public void setTurnVolume(BigDecimal turnVolume) 
    {
        this.turnVolume = turnVolume;
    }

    public BigDecimal getTurnVolume() 
    {
        return turnVolume;
    }

    public Long getLimitDays() {
        return limitDays;
    }

    public void setLimitDays(Long limitDays) {
        this.limitDays = limitDays;
    }

    public void setCrteTime(Date crteTime) 
    {
        this.crteTime = crteTime;
    }

    public Date getCrteTime() 
    {
        return crteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("stockCode", getStockCode())
            .append("stockName", getStockName())
            .append("closePrice", getClosePrice())
            .append("openPrice", getOpenPrice())
            .append("HIGH", getHIGH())
            .append("LOW", getLOW())
            .append("TURNOVER", getTURNOVER())
            .append("turnVolume", getTurnVolume())
            .append("limitDays", getLimitDays())
            .append("crteTime", getCrteTime())
            .toString();
    }
}
